package vip.zhenzicheng.websocket.netty_socketio;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;

/**
 * 消息模板
 *
 * @author zhenzicheng
 * @date 2023-04-14 16:08
 */
@Data
public class MessageTemplate implements Serializable {

    private String type;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long messageId;

    private String content;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long fromUserId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long toUserId;
}
